<?php
class Accountsettings_Data_Update implements Accountsettings_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        //var_dump($variables['post']);
        //die();
        $variables['query'] = "UPDATE account_settings SET username='".$variables['post']['username']."', email='".$variables['post']['email']."', status_name='".$variables['post']['status_name']."', access_level='".$variables['post']['access_level']."' WHERE username='".$variables['post']['old_username']."';";
        return $this->core_controller_dataoperation->main($variables);
    }
}
